import {createSlice} from "@reduxjs/toolkit"

export const textSlice=createSlice({
    name:"textInfo",
    initialState:{
        value:15
    },
    reducers:{
        add:(state,action)=>{
            return {
                value:state.value+action.payload
            }
        }
    }
})

export default textSlice.reducer;
export const {add} =textSlice.actions;
